////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include "Form/SmegEditorFrame.h"

/***********************************************************
** TODO LIST BEGIN
************************************************************

- ALL
COMMENT EVERYTHING THE SAME WAY
MAKE SMEG ENGINE IN DLL
Handle squared variable

- LevelEditor:
CRASH WHEN LOADING/CLEARING PROJECT!!!!! (Still ?)
Display The Sprite of BaseEntity when modifying its ConvexHull
See how to deal with disabled categories...
Better loading of XML if we want category under another category...
Select multiple vertex when creating HULL
Undo/Redo
What project category we paste
Add Drag & Drop from the component tree

- SmegLight:
Better sprite management (code copy in SpriteHull/BaseEntiy)
Add depth to get good lighting for hulls/walls

************************************************************
** TODO LIST END
***********************************************************/

#define WIN_WIDTH 1024
#define WIN_HEIGHT 768

class MyApp : public wxApp
{
public:
	virtual bool OnInit();
};
	
#ifdef _DEBUG
IMPLEMENT_APP_CONSOLE(MyApp)
#else
IMPLEMENT_APP(MyApp)
#endif
	
bool MyApp::OnInit()
{
	if ( !wxApp::OnInit() )
	    return false;

    srand(time(NULL));
	
    SmegEditorFrame *frame = new SmegEditorFrame( (wxWindow*)NULL );
    if (!frame->LoadAllProperties("data/SmegProperties.xml")) {
        return false;
    }
	frame->Show(true);
	
	return true;
}